package com.bhs.sansonglogistics.bean;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.annotation.NonNull;

public class BusinessInfo implements Parcelable {
    public String company_lisence_pic, legal_card_front, legal_card_back;
    public String company_name, company_lisence_no, company_address, legal_card_no, legal_mobile,legal_truename;

    public BusinessInfo(){

    }
    public BusinessInfo(Parcel in) {
        company_lisence_pic = in.readString();
        legal_card_front = in.readString();
        legal_card_back = in.readString();
        company_name = in.readString();
        company_lisence_no = in.readString();
        company_address = in.readString();
        legal_card_no = in.readString();
        legal_mobile = in.readString();
        legal_truename = in.readString();
    }

    public static final Creator<BusinessInfo> CREATOR = new Creator<BusinessInfo>() {
        @Override
        public BusinessInfo createFromParcel(Parcel in) {
            return new BusinessInfo(in);
        }

        @Override
        public BusinessInfo[] newArray(int size) {
            return new BusinessInfo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(@NonNull Parcel parcel, int i) {
        parcel.writeString(company_lisence_pic);
        parcel.writeString(legal_card_front);
        parcel.writeString(legal_card_back);
        parcel.writeString(company_name);
        parcel.writeString(company_lisence_no);
        parcel.writeString(company_address);
        parcel.writeString(legal_card_no);
        parcel.writeString(legal_mobile);
        parcel.writeString(legal_truename);
    }
}
